<?php
defined('_JEXEC') or die ('restrinced access');
jimport('joomla.application.component.model');
class BlogModelPosts extends JModel
{
   var $_posts = null;
   function __construct()
   {
      parent::__construct();
   }
   function getPosts()
   {
      if (!$this->_posts)
      {
         $blog_posts[0]="first post";
         $blog_posts[1]="second post";
         
         $this->_posts = $blog_posts;
      }
      return $this->_posts;
   }
}
?>